package com.ht.aems.fesmonitor;

import com.ht.aems.fesmodel.FesProperties;

import javax.swing.*;

/**
 * Created by IntelliJ IDEA.
 *
 * @author Dong Shufeng
 *         Date: 2008-7-18
 */
public class Main {
    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            // Likely PlasticXP is not in the class path; ignore.
        }
        Runnable doCreateAndShowGUI = new Runnable() {
            public void run() {
                FesProperties.readConf("config.fesmonitor");
                FesMonitor frame = new FesMonitor(FesProperties.getProperty(FesProperties.FES_TITLE));
                frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                frame.setSize(900, 600);
                frame.setVisible(true);
                ServerChooser.showDialog(frame);
            }
        };
        SwingUtilities.invokeLater(doCreateAndShowGUI);
    }
}
